.color {
flex: 1;
  height: 36px;
  padding: 6px;
  background-color: #fff;
  background-color: #d8d8d8;
  border: 1px solid #d8d8d8;
  border-radius: 6px;

  div {
    width: 100%;
    height: 100%;
    background-color: #666;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
  }
}
.transparent{
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: #f0f0f0;
  margin-left: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  
  &::before{
    position: absolute;
    width: 20px;
    transform: rotate(-45deg);
    content: '';
    height: 2px;
    border-radius: 2px;
    transform-origin: center;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: red;
  }

  &::after{
    position: absolute;
    width: 20px;
    transform: rotate(-45deg);
    content: '';
    height: 2px;
    border-radius: 2px;
    transform-origin: center;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: red;
    transition: all 0.4s;
  }
  &:hover{
    &::after{
      transform: rotate(45deg);
    }
  }
}